package io.gitee.hchaojie.day04;

public class DemoRunnable2 {
    public static void main(String[] args) {
//        Thread t = new Thread(new Runnable() {
//            @Override
//            public void run() {
//                System.out.println("线程启动。。。");
//            }
//        });

        // lambda表达式，java8里面的新语法
        Thread t = new Thread(() -> {
            System.out.println("线程启动。。。");
        });

        t.start();
    }
}
